package cc.wanforme.st.server.base.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import cc.wanforme.st.server.base.entity.AdminRole;
import cc.wanforme.st.server.vo.base.AdminRoleVo;


/**
 * @author wanne
 * 2020年10月23日
 */
public interface IAdminRoleService extends IService<AdminRole>{

	/**获取用户的所有角色
	 * @param adminId
	 * @return
	 */
	List<AdminRole> selectRoles(long adminId);
	
	AdminRoleVo selectAdminAndRoles(long adminId);
	
	AdminRole saveVo(AdminRole vo);

	void updateVo(AdminRole vo);
	
	void deleteVo(String id);
	
	/** 更新用户的所有角色
	 * @param vo
	 */
	void updateAdminRoles(AdminRoleVo vo);
	
}
